package com.yidu.best.systemManagement.Authority.domain;

public class AuthorityRoleResource {
	private String roleResId;
	private String resourceId;
	private String roleId;
	private String resourceName;
	private String roleName;
	
	public AuthorityRoleResource() {
	}

	public AuthorityRoleResource(String roleResId, String resourceId, String roleId, String resourceName,
			String roleName) {
		super();
		this.roleResId = roleResId;
		this.resourceId = resourceId;
		this.roleId = roleId;
		this.resourceName = resourceName;
		this.roleName = roleName;
	}

	@Override
	public String toString() {
		return "AuthorityRoleResource [roleResId=" + roleResId + ", resourceId=" + resourceId + ", roleId=" + roleId
				+ ", resourceName=" + resourceName + ", roleName=" + roleName + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((resourceId == null) ? 0 : resourceId.hashCode());
		result = prime * result + ((resourceName == null) ? 0 : resourceName.hashCode());
		result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
		result = prime * result + ((roleName == null) ? 0 : roleName.hashCode());
		result = prime * result + ((roleResId == null) ? 0 : roleResId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AuthorityRoleResource other = (AuthorityRoleResource) obj;
		if (resourceId == null) {
			if (other.resourceId != null)
				return false;
		} else if (!resourceId.equals(other.resourceId))
			return false;
		if (resourceName == null) {
			if (other.resourceName != null)
				return false;
		} else if (!resourceName.equals(other.resourceName))
			return false;
		if (roleId == null) {
			if (other.roleId != null)
				return false;
		} else if (!roleId.equals(other.roleId))
			return false;
		if (roleName == null) {
			if (other.roleName != null)
				return false;
		} else if (!roleName.equals(other.roleName))
			return false;
		if (roleResId == null) {
			if (other.roleResId != null)
				return false;
		} else if (!roleResId.equals(other.roleResId))
			return false;
		return true;
	}

	public String getRoleResId() {
		return roleResId;
	}

	public void setRoleResId(String roleResId) {
		this.roleResId = roleResId;
	}

	public String getResourceId() {
		return resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	
}
